Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to simplify the PDFFindBar and PDFSidebar constructors #10123

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

Please refer to the individual commit messages.

… moving the `eventBus` parameter from the `options` object

This is similar to the format used by a number of other viewer components, and should simplify the `PDFFindBar` initialization slightly.
… moving the `eventBus` parameter from the `options` object and removing the `PDFOutlineViewer` dependency

This is similar to the format used by a number of other viewer components, and should simplify the `PDFSidebar` initialization slightly.
Furthermore, by using the `eventBus` it's no longer necessary for `PDFSidebar` to have a direct dependency on `PDFOutlineViewer`.

There's still room for improvement here, but this patch is at least a start (since it's not clear to me how best to handle the viewers).
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2018

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/09fef185c97f914/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2018

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/09fef185c97f914/output.txt

Total script time: 2.95 mins

Published

@timvandermeij timvandermeij merged commit 1cfb723 into mozilla:master Oct 2, 2018
@timvandermeij
Copy link
Contributor

timvandermeij commented Oct 2, 2018

More consistency and fewer dependencies; really nice!

@Snuffleupagus Snuffleupagus deleted the viewer-component-signatures branch October 3, 2018 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants